/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.dao;

import java.util.List;
import java.util.Map;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.goods.entity.GoodsType;
import com.jeesite.modules.goods.entity.ZtGoods;
import org.apache.ibatis.annotations.Param;

/**
 * 测试数据DAO接口
 * @author ThinkGem
 * @version 2018-04-22
 */
@MyBatisDao
public interface ZtGoodsDao extends CrudDao<ZtGoods> {
	public ZtGoods getGoodstemp(ZtGoods ztGoods);
	public ZtGoods getGoodInfo(ZtGoods ztGoods);
	public void updateSjStatus(ZtGoods ztGoods);
	public String getImgFirst(ZtGoods ztGoods);
	public List<Map> findMh(ZtGoods ztGoods);
	public List<Map> findMainMh(ZtGoods ztGoods);
	public void batchUpdateGoodstemp(List<ZtGoods> ztGoodsList);
	public List<Map> findMhByTypeByFirst(ZtGoods ztGoods);
	public List<ZtGoods> findMoreMh(ZtGoods ztGoods);
	public ZtGoods getDetail(ZtGoods ztGoods);
	public List<Map> findMhByType(ZtGoods ztGoods);//分类
	public void updateState(GoodsType goodsType);
	public ZtGoods getByCode(ZtGoods ztGoods);
	public void updateStateDis(List<String> list);
	public List<String> getImgs(ZtGoods ztGoods);
	public void batchUpdate(List<ZtGoods> ztGoodsList);
	public String getFileFirst(ZtGoods ztGoods);
	public void batchUpdatePrice(List<ZtGoods> ztGoodsList);
	public void saveContentimgs(ZtGoods ztGoods);
	public List<ZtGoods> findByTitle(ZtGoods ztGoods);
	public ZtGoods getmh(ZtGoods ztGoods);
	public List<ZtGoods> findListPageNum(ZtGoods ztGoods);
	public List<Map> findMainPoster(ZtGoods ztGoods);
	
	public List<ZtGoods> findAutoList(ZtGoods ztGoods);
	void updateSjStatusType(GoodsType goodsType);
	public void batchUpdateSjStatus(List<ZtGoods> ztGoodsList);
	int updateSoldOut();
	List<ZtGoods> getGoodsPricing(@Param("list")String [] list);
}